home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 27.zip
/
BS1 part 27
/
Panorama3_d1.adf
/
ARexxMacros
/
PanToFC.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-02-20
|
2KB
|
77 lines
/* Send a picture from Panorama to the FireCracker 24-bit display */
/* using Art Department Professional */
/* by James M. Bardeen. */
/* AdPro must be loaded and running in the background. */
/* and a 24-bit picture must have been created and */
/* must be still "held" in memory by Panorama. */
/* You must have enough memory to run Panorama and ADPro simultaneously */
/* and store 2 copies of the 24-bit picture in RAM. */
/* Do limited testing to see if ADPro is running */
say
if show(port, 'ADPro') = 0 then do
say "Can't find ADPro."
EXIT
end
ADDRESS 'Panorama'
say "Saving 24-bit pic to ram:pan.iff"
fname = "ram:pan.iff"
/* If you are short of RAM, change this to store pan.iff in a */
/* directory on your hard drive. */
'SaveIFF24 'fname
err = RC
if RC ~= 0 then do
say "Save failed."
EXIT
end
/* Eliminate the following 2 commands if you have lots of memory */
'KillPic' /* Frees picture memory in Panorama */
'HoldPic' /* Reenables hold pic in Panorama */
say "Make ADPro do its stuff."
'SetBusyPointer'
ADDRESS 'ADPro'
OPTIONS RESULTS
'PSTATUS UNLOCKED'
'LFORMAT UNIVERSAL'
err = RC
if err ~= 0 then do
'ADPRO_TO_FRONT'
OKAY1 "Unable to find UNIVERSAL loader"
end
if err=0 then do
'LOAD 'fname
err = RC
if err ~= 0 then do
'ADPRO_TO_FRONT'
OKAY1 "Unable to load IFF file "fname
end
end
if err=0 then do
'SFORMAT FC24'
err = RC
if err ~= 0 then do
'ADPRO_TO_FRONT'
OKAY1 "Can't find the Firecracker Saver"
end
end
if err=0 then do
'ADPRO_TO_FRONT'
'SAVE XXX RAW CLEAR CENTER IMAGE BOARD ON'
/* See the ADPro manual for additional SAVE options */
if RC ~= 0 then
OKAY1 "Save to Firecracker failed."
end
/* If you have a separate monitor for the Firecracker display */
/* you may want to add an 'ADPRO_TO_BACK' command here */
ADDRESS COMMAND
'delete < nil: > nil: 'fname
ADDRESS 'Panorama'
say "Done."
'ClearPointer'